diff options
| author | Adam Soltys <[email protected]> | 2024-11-26 21:45:00 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-26 21:45:00 -0800 |
| commit | f4eb6547d0db5edd0137fdefe461433500515040 (patch) | |
| tree | 86a24ca7f263f80f322d59b2e5def5fc6b062719 /src/routes/(app)/[username] | |
| parent | 872aa0b3b0b9a847b8afcdee7f1ad53c524ce4f0 (diff) | |
| download | coinos-ui-f4eb6547d0db5edd0137fdefe461433500515040.tar.gz coinos-ui-f4eb6547d0db5edd0137fdefe461433500515040.zip | |
warnings
Diffstat (limited to 'src/routes/(app)/[username]')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.svelte | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index b754a886..b2c1970a 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -1,10 +1,8 @@ <script> import { scale } from "svelte/transition"; import { btc, f, sat } from "$lib/utils"; - import Icon from "$comp/Icon.svelte"; import Account from "$comp/Account.svelte"; import Balance from "$comp/Balance.svelte"; - import Items from "$comp/Items.svelte"; import { t } from "$lib/translations"; import { installPrompt } from "$lib/store"; import { afterNavigate, preloadData } from "$app/navigation"; @@ -52,62 +50,4 @@ </button> {/if} {/if} - - <Items {items} {subject} {user} {total} {currency} {rate} /> - - <div - class="fixed inset-x-0 mx-auto flex bottom-16 px-4" - class:static={!items.length} - > - {#if total > 0} - <button - class="rounded-2xl py-5 px-6 font-bold hover:bg-neutral-700 flex bg-black text-white mx-auto" - onclick={checkout} - > - <div class="mx-auto flex"> - <div class="my-auto text-2xl"> - {$t("user.dashboard.checkout")} - {f(total, currency)} - <span class="text-base"> - {sat(btc(total, rate), currency)} - </span> - </div> - </div> - </button> - {:else if user?.username !== subject.username && (!subject.anon || subject.lud16)} - <a - href={subject.anon - ? `/send/${encodeURIComponent(subject.lud16)}` - : `/pay/${subject.username}`} - class="contents" - > - <button class="btn btn-accent !text-2xl items-center !w-full sm:!max-w-[400px] mx-auto"> - <iconify-icon icon="ph:lightning-fill" class="text-yellow-300" - ></iconify-icon> - <div> - {$t("user.pay")} - {subject.username} - </div> - </button> - </a> - {/if} - </div> </div> - -<style> - .custom-shadow-item { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - visibility: visible; - background: #333; - opacity: 0.5; - margin: 0; - } - - .bottom-half { - @apply bottom-1/2; - } -</style> |
